<ion-view view-title="排名" class='ranking'>
    <ion-content>
        <div class="nav" ng-click="popup()">
            选择品牌/产品
            <i class="icon ion-chevron-down"></i>
        </div>
        <img class='top10' src="img/top10.jpg">
        <div class="top">
            <div>
                <div>
                    <div class="th">排名</div>
                    <div class="th">代表名称</div>
                    <div class="th">职位</div>
                    <div class="th">达成率</div>
                    <div class="th" style="width:15%;">展开</div>
                </div>
            </div>
            <div>
                <div ng-repeat="(key, data) in datas1 track by key " ng-click="an($index)" style="width:100%height: 37px;line-height: 37px;">
                    <div class="th">
                        <span class="top3 icon" ng-class="{'bg': key < 3, 't2': key == 1, 't3': key == 2}">
                            <span class='d'>{{data.rank}}</span>
                        </span>
                    </div>
                    <div class="th">{{data.name}}</div>
                    <div class="th">{{data.post}}</div>
                    <div class="th">{{data.sales}}%</div>
                    <div class="th" style="width:15%;">
                        <img src="img/zhankai.png">
                    </div>
                    <!-- <div class="sub sub{{$index}}"> -->
                    <div style="background-color: #F6F6F6;">
                        <div ng-repeat="subordinates in data.datas track by $index " ng-if="data.istrue" style="width:100%height: 35px;line-height: 35px;">
                            <div class="th"></div>
                            <div class="th">{{subordinates.name}}</div>
                            <div class="th">{{subordinates.post}}</div>
                            <div class="th">{{subordinates.sales}}%</div>
                            <div class="th" style="width: 15%;">/</div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </ion-content>
</ion-view>